import request from '@/utils/request'

// 查询任务执行列列表
export function listExe(query) {
  return request({
    url: '/exam/exe/list',
    method: 'get',
    params: query
  })
}


// 查询任务执行列列表
export function listDetailExe(query) {
  return request({
    url: '/exam/exe/detail/list',
    method: 'get',
    params: query
  })
}

// 查询任务执行列详细
export function getExe(id) {
  return request({
    url: '/exam/exe/' + id,
    method: 'get'
  })
}

// 查询任务执行列详细
export function getExeDetail(taskId) {
  return request({
    url: '/exam/exe/detail/' + taskId,
    method: 'get'
  })
}

// 新增任务执行列
export function addExe(data) {
  return request({
    url: '/exam/exe',
    method: 'post',
    data: data
  })
}

// 修改任务执行列
export function updateExe(data) {
  return request({
    url: '/exam/exe',
    method: 'put',
    data: data
  })
}

// 删除任务执行列
export function delExe(id) {
  return request({
    url: '/exam/exe/' + id,
    method: 'delete'
  })
}
